From 51d91a1c4305e43f1f929175b1c9828b61b992fe Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 8 Jul 2010 09:45:11 +0100 Subject: [PATCH] x86/mce: use cpu_online() instead of cpu_isset(,cpu_online_map) Signed-off-by: Jan Beulich --- xen/arch/x86/cpu/mcheck/mce.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/cpu/mcheck/mce.c b/xen/arch/x86/cpu/mcheck/mce.c index 2a92c4beb8..7ba7388696 100644 --- a/xen/arch/x86/cpu/mcheck/mce.c +++ b/xen/arch/x86/cpu/mcheck/mce.c @@ -934,7 +934,7 @@ static void do_mc_get_cpu_info(void *v) * Deal with sparse masks, condensed into a contig array. */ while (cpn >= 0) { - if (cpu_isset(cpn, cpu_online_map)) + if (cpu_online(cpn)) cindex++; cpn--; } @@ -1415,7 +1415,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u_xen_mc) if (target >= NR_CPUS) return x86_mcerr("do_mca inject: bad target", -EINVAL); - if (!cpu_isset(target, cpu_online_map)) + if (!cpu_online(target)) return x86_mcerr("do_mca inject: target offline", -EINVAL); @@ -1442,7 +1442,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u_xen_mc) if (target >= NR_CPUS) return x86_mcerr("do_mca #MC: bad target", -EINVAL); - if (!cpu_isset(target, cpu_online_map)) + if (!cpu_online(target)) return x86_mcerr("do_mca #MC: target offline", -EINVAL); add_taint(TAINT_ERROR_INJECT); -- 2.30.2